package com.sky.service;

import com.sky.result.Result;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @Auther: zhaoss
 * @Date: 2023/5/9 - 05 - 09 - 17:17
 * @Description: com.sky.service
 * @version: 1.0
 */
public interface ReportService {
    /**
     * 营业额统计接口
     * @param begin
     * @param end
     * @return
     */
    public Result turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计接口
     * @param begin
     * @param end
     * @return
     */
    public Result userStatistics( LocalDate begin, LocalDate end);

    /**
     * 有效订单统计接口
     * @param begin
     * @param end
     * @return
     */
    public Result ordersStatistics( LocalDate begin,LocalDate end);

    /**
     * top10统计接口
     * @param begin
     * @param end
     * @return
     */
    public Result top10(LocalDate begin,LocalDate end);

    /**
     * 导出近30天的运营数据报表
     * @param response
     **/
    void exportBusinessData(HttpServletResponse response);
}
